#ifndef CHARGE_H
#define CHARGE_H

/* Includes ------------------------------------------------------------------*/
#include "stm32f10x.h"
#include "stm32f10x_rcc.h"
#include "stm32f10x_adc.h"
#include "stm32f10x_dma.h"
#include "main.h"

#define CHARGEnPIN                             	2

#define CHARGE_STATUS_PIN			GPIO_Pin_8
#define CHARGE_STATUS_PORT        	GPIOB
#define CHARGE_STATUS_CLK             	RCC_APB2Periph_GPIOB

#define CHARGE_LEVEL_PIN			GPIO_Pin_7
#define CHARGE_LEVEL_PORT        		GPIOA
#define CHARGE_LEVEL_CLK             	RCC_APB2Periph_ADC1

typedef enum 
{
	CHARGE_STATUS = 0,
	CHARGE_LEVEL = 1
} Charge_TypeDef;


void ChargeInitController(void);
uint16_t GetBatterryLevel(void);
void ReadBatterryLevel(void);


#endif 


